package com.gao.id.strategy;

import com.gao.id.IdGenerator;
import com.gao.id.support.GenSnowFlow;
import org.springframework.stereotype.Component;

/**
 * 雪花算法 ID
 */
@Component
public class SnowFlakeId implements IdGenerator {

    @Override
    public Long nextId() {
        GenSnowFlow snowFlow = new GenSnowFlow(1, 1, 1);
        return snowFlow.nextId();
    }
}
